package com.xbongbong.schedule.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.schedule.pojo.ScheduleTaskRelateBusinessPOJO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

@ToString
@Getter
@Setter
public class ScheduleTaskAddDTO extends BaseDTO {

    private static final long serialVersionUID = -2014571325175972703L;

    /**
     * 表单id
     */
    @NotNull(message = "{dto.msg.common.formId.NotNull}")
    private Long formId;
    /**
     * 触发时间
     */
    @NotNull(message = "{dto.schedule.task.triggerTime.NotNull}")
    private Long triggerTime;
    /**
     * 任务类型
     */
    @NotNull(message = "{dto.schedule.task.type.NotNull}")
    private Integer scheduleType;

    @Valid
    private ScheduleTaskRelateBusinessPOJO scheduleTaskRelateBusiness;

}
